/*1!+....+7!*/
#include <stdio.h>

int main() {
	int i, n;
	double m, sum;
	m = 1;

	for (n = 1; n <= 7; n++) {
		m = 1;
		for (i = 1; i <= n; i++)
			m = m * i;
		printf("%d!=%.1f\n", n, m);

		sum = sum + m;
	}

	printf("sum=%f", sum);
	return 0;
}